/*
============================================================================
 Name        : $(Classname).h
 Author      : $(Author)
 Version     :
 Copyright   : $(Copyright)
 Description : C$(Classname) declaration
============================================================================
*/

#ifndef $(CLASSNAME)_H
#define $(CLASSNAME)_H

// For CActive, link against: euser.lib
// For RTimer, link against: euser.lib
#include <e32base.h>

class C$(Classname) : public CActive
{
public:
	// C++ constructor
	C$(Classname)();
	
	// Second-phase constructor
	void ConstructL();
	
	// Cancel and destroy
	~C$(Classname)();

public: // New functions
	// Function for making the initial request
	void Start(TTimeIntervalMicroSeconds32 aDelay);

private: // From CActive
	// Handle completion
	void RunL();
	
	// How to cancel me
	void DoCancel();
	
	// Override to handle leaves from RunL(). Default implementation causes
	// the active scheduler to panic.
	//void RunError(TInt aError);

private:
	enum T$(Classname)State
	{
	    EUninitialized,	// Uninitialized
	    EInitialized,	// Initalized
	    EError			// Error condition
	};

private:
	TInt    iState;		// State of the active object
	RTimer	iTimer;		// Provides async timing service

};

#endif
